import java.util.Scanner;

public class Liu1 {

	//求整数n的阶乘 5=1*2*3*4*5
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		System.out.println("请输入一个整数");
		int n=scanner.nextInt();
		int sum=1;
		for (int x = 1; x < n; x++) {
			sum=sum*x;
			System.out.print(x+"*");
		}
		System.out.println(n+"="+sum);
	}
}
